package com.example.seey2023.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.seey2023.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    //登录查阅语句
    @Select("select * from user where username = #{username} and password = #{password}")
        // @Select("select * from user where username = #{0} and password = #{1}")
    //User login(String username, String password);
    User login(@Param("username")String username, @Param("password")String password);
}
